import qrcode
from PIL import Image

# 创建QRCode对象
# qr = qrcode.QRCode(
#     version=1,
#     error_correction=qrcode.constants.ERROR_CORRECT_L,
#     box_size=10,
#     border=4,
# )
#
# # 添加数据
# data = "https://www.baidu.com/"
# qr.add_data(data)
# qr.make(fit=True)
#
# # 创建图像
# img = qr.make_image(fill_color="black", back_color="white")
#
# # img.show()
#
# print(type(img))

image = Image.open('/Users/liulu/PycharmProjects/practical_tools/util/example.png')
print(image, type(image))
# image.show(title="helloworld")
